<script setup lang="ts">
	import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
	import { useNetWorkHook } from '@/hooks';
	
	const useNetWork = useNetWorkHook();
	
	onLaunch(() => {
		
	})
	
	onShow(() => {
		console.log('App Show');
		useNetWork.checkNetworkStatus();
		useNetWork.subscriptionNetworkStatusChange();
	})
	
	onHide(() => {
		console.log('App Hide')
		useNetWork.offNetworkStatusChange();
		useNetWork.setNetWorkStatusToDefault();
	})

</script>

<style lang="scss">
	page {
		height: 100%;
	}
</style>